package com.thinkgem.jeesite.modules.sys.service.m;

import com.thinkgem.jeesite.modules.sys.dao.TbAgentMapper;
import com.thinkgem.jeesite.modules.sys.entity.TbAgent;
import com.thinkgem.jeesite.modules.sys.entity.TbAgentExample;
import com.thinkgem.jeesite.modules.sys.service.i.TbAgentService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by jyy on 2016/10/17 0017.
 */
@Service
@Transactional(readOnly = true)
public class TbAgentServiceImp implements TbAgentService {

    @Autowired
    private TbAgentMapper tbAgentMapper;

    @Override
    public int countByExample(TbAgentExample example) {
        return 0;
    }

    @Override
    public int deleteByExample(TbAgentExample example) {
        return 0;
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return 0;
    }

    @Override
    public int insert(TbAgent record) {
        return 0;
    }

    @Override
    public int insertSelective(TbAgent record) {
        return 0;
    }

    @Override
    public List<TbAgent> selectByExample(TbAgentExample example) {
        return null;
    }

    @Override
    public TbAgent selectByPrimaryKey(Integer id) {
        return null;
    }

    @Override
    public int updateByExampleSelective(@Param("record") TbAgent record, @Param("example") TbAgentExample example) {
        return 0;
    }

    @Override
    public int updateByExample(@Param("record") TbAgent record, @Param("example") TbAgentExample example) {
        return 0;
    }

    @Override
    public int updateByPrimaryKeySelective(TbAgent record) {
        return 0;
    }

    @Override
    public int updateByPrimaryKey(TbAgent record) {
        return 0;
    }

    // 根据UID来查询代理商
    @Override
    public TbAgent queryByUIDAgent(@Param("uid") Integer uid) {
        return tbAgentMapper.queryByUIDAgent(uid);
    }

}
